#include "labelbutton.h"

#include <QMouseEvent>
#include <QCursor>

LabelButton::LabelButton( QWidget * parent ) : QLabel( parent ) {
    this->setCursor( QCursor( Qt::PointingHandCursor ) );
}

void LabelButton::mousePressEvent( QMouseEvent * event ) {
    if ( event->button() != Qt::LeftButton ) {
        return;
    }

    emit clicked();
}
